<!--回复框-->
<div class="row">
    <div class="col-md-12">
        <!--输入框-->
        <p>
            <input type="hidden" id="weibo-comment-to-comment-id" name="reply_id" value="0"/>
            <textarea placeholder="说点什么吧～" id="text_{$weiboId}"
                      class="form-control weibo-comment-content comment_text_inputor"></textarea>
        </p>
        <a href="javascript:" onclick="insertFace($(this))" ><img src="__STATIC__/image/bq.png"/></a>

        <!--评论按钮-->
        <p class="pull-right">
            <button class="btn btn-primary weibo-comment-commit" type="submit" id="btn_{$weiboId}"
                    data-weibo-id="{$weiboId}">评论 Ctrl+Enter
            </button>
        </p>
    </div>

</div>
<div id="emot_content" class="emot_content" style="float: left"></div>
<!--评论列表-->
<volist name="list" id="comment">
    <hr style="margin: 5px 0px;"/>
    <div class="row">
        <div class="col-md-12">
            <div class="pull-left" style="width: 32px;">
                <a href="{$comment.user.space_url}" ucard="{$comment.user.uid}"><img src="{$comment.user.avatar32}" class="avatar-img"/></a>
            </div>
            <div class="" style="overflow: hidden; padding-left: 15px; padding-top: 5px;">
                <span class="text-muted pull-right">&nbsp;{$comment.create_time|friendlyDate}&nbsp;&nbsp;<a
                        data-weibo-id="{$weiboId}" onclick="weibo_reply(this,{$comment.id},'{$comment.user.username}')"><i
                        class="glyphicon glyphicon-comment"></i></a>
                        <if condition="($comment['uid'] eq is_login()) OR (is_administrator())">
                            <a data-weibo-id="{$weiboId}" onclick="comment_del(this,{$comment.id})"><i style="margin-left: 0.2em" class="glyphicon glyphicon-trash"></i></a>
                        </if>
                </span>
                <a href="{$comment.user.space_url}" ucard="{$comment.user.uid}">{$comment.user.username|htmlspecialchars}</a>{$comment.user.icons_html}：{$comment.content|parse_comment_content}
            </div>
        </div>
    </div>
</volist>
<script>ucard();</script>
<div class="operation" style="display: none;">
    <include file="_operation"/>
</div>
<script>
    $(function () {
        var weiboid = '{$weiboId}';
        $('#text_' + weiboid + '').keypress(function (e) {
            if (e.ctrlKey && e.which == 13 || e.which == 10) {
                $('#btn_' + weiboid + '').click();
            }
        });
    });
    $('.comment_text_inputor').atwho(at_config);
</script>